package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE client</p>
 * <p></p>
 *
 * <p>Generated at Thu Mar 03 13:34:59 WET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "client")
@SuppressWarnings("serial")
public class Client implements Serializable {

	/**
	 * Attribute idClient.
	 */
	private Integer idClient;
	
	/**
	 * Attribute clRef.
	 */
	private String clRef;
	
	/**
	 * Attribute intitule.
	 */
	private String intitule;
	
	/**
	 * Attribute compteg
	 */
	 private Compteg compteg;	
	 private Integer idCompteg;

	/**
	 * Attribute catcompta
	 */
	 private Catcompta catcompta;	
	 
	 
	 private Integer idCatcompta;
	 
	/**
	 * Attribute depot
	 */
	 private Depot depot;	

	 private Integer idDepot;
	
	/**
	 * <p> 
	 * </p>
	 * @return idClient
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_client")
		public Integer getIdClient() {
		return idClient;
	}

	/**
	 * @param idClient new value for idClient 
	 */
	public void setIdClient(Integer idClient) {
		this.idClient = idClient;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return clRef
	 */
	@Basic
	@Column(name = "cl_ref", length = 19)
		public String getClRef() {
		return clRef;
	}

	/**
	 * @param clRef new value for clRef 
	 */
	public void setClRef(String clRef) {
		this.clRef = clRef;
	}
	
	/**
	 * <p> 
	 * </p>
	 * @return intitule
	 */
	@Basic
	@Column(name = "intitule", length = 250)
		public String getIntitule() {
		return intitule;
	}

	/**
	 * @param intitule new value for intitule 
	 */
	public void setIntitule(String intitule) {
		this.intitule = intitule;
	}
	
	/**
	 * get compteg
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@JsonIgnore
	@JoinColumn(name = "id_compteg",insertable=false ,updatable=false)
	public Compteg getCompteg() {
		return this.compteg;
	}
	
	/**
	 * set compteg
	 */
	public void setCompteg(Compteg compteg) {
		this.compteg = compteg;
	}

	/**
	 * get catcompta
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@JsonIgnore
	@JoinColumn(name = "id_catcompta",insertable=false ,updatable=false)
	public Catcompta getCatcompta() {
		return this.catcompta;
	}
	
	/**
	 * set catcompta
	 */
	public void setCatcompta(Catcompta catcompta) {
		this.catcompta = catcompta;
	}

	/**
	 * get depot
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@JsonIgnore
	@JoinColumn(name = "id_depot",insertable=false ,updatable=false)
	public Depot getDepot() {
		return this.depot;
	}
	
	/**
	 * set depot
	 */
	public void setDepot(Depot depot) {
		this.depot = depot;
	}

	@Basic
	@Column(name = "id_compteg")
	public Integer getIdCompteg() {
		return idCompteg;
	}

	public void setIdCompteg(Integer idCompteg) {
		this.idCompteg = idCompteg;
	}

	@Basic
	@Column(name = "id_catcompta")
	public Integer getIdCatcompta() {
		return idCatcompta;
	}

	public void setIdCatcompta(Integer idCatcompta) {
		this.idCatcompta = idCatcompta;
	}

	@Basic
	@Column(name = "id_depot")
	public Integer getIdDepot() {
		return idDepot;
	}

	public void setIdDepot(Integer idDepot) {
		this.idDepot = idDepot;
	}



}